package com.ruoyi.project.orderSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.orderSystem.mapper.TaskStationMapper;
import com.ruoyi.project.orderSystem.domain.TaskStation;
import com.ruoyi.project.orderSystem.service.ITaskStationService;

/**
 * 任务站点Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-01-26
 */
@Service
public class TaskStationServiceImpl implements ITaskStationService 
{
    @Autowired
    private TaskStationMapper taskStationMapper;

    /**
     * 查询任务站点
     * 
     * @param id 任务站点ID
     * @return 任务站点
     */
    @Override
    public TaskStation selectTaskStationById(Long id)
    {
        return taskStationMapper.selectTaskStationById(id);
    }

    /**
     * 查询任务站点列表
     * 
     * @param taskStation 任务站点
     * @return 任务站点
     */
    @Override
    public List<TaskStation> selectTaskStationList(TaskStation taskStation)
    {
        return taskStationMapper.selectTaskStationList(taskStation);
    }

    /**
     * 新增任务站点
     * 
     * @param taskStation 任务站点
     * @return 结果
     */
    @Override
    public int insertTaskStation(TaskStation taskStation)
    {
        return taskStationMapper.insertTaskStation(taskStation);
    }

    /**
     * 修改任务站点
     * 
     * @param taskStation 任务站点
     * @return 结果
     */
    @Override
    public int updateTaskStation(TaskStation taskStation)
    {
        return taskStationMapper.updateTaskStation(taskStation);
    }

    /**
     * 批量删除任务站点
     * 
     * @param ids 需要删除的任务站点ID
     * @return 结果
     */
    @Override
    public int deleteTaskStationByIds(Long[] ids)
    {
        return taskStationMapper.deleteTaskStationByIds(ids);
    }

    /**
     * 删除任务站点信息
     * 
     * @param id 任务站点ID
     * @return 结果
     */
    @Override
    public int deleteTaskStationById(Long id)
    {
        return taskStationMapper.deleteTaskStationById(id);
    }
}
